package cn.appsys.service.backend;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.appsys.dao.backenduser.BackendUserMapper;
import cn.appsys.pojo.BackendUser;

@Service
public class BackendUserServiceImpl implements BackendUserService {
	
	@Resource
	private BackendUserMapper backendUserMapper;

	@Override
	public BackendUser login(String userCode, String userTypeName) {
		BackendUser backendUser = null;
		try {
			backendUser = backendUserMapper.login(userCode, userTypeName);
		} catch (Exception e) {
			// TODO: handle exception
			e.printStackTrace();
		}
		return backendUser;
	}

}
